<?php

// global variables 
add_option('wpsary_pagetitle', 'Photo Gallery');

// sets a default value for any option that does not exist
add_option('wpsary_baseurl', '?p=wpsary', 'the page where you will find your album');
add_option('wpsary_thumbwidth', 128, 'maximum thumbnail width');
add_option('wpsary_thumbheight', 93, 'maximum thumbnail height');
add_option('wpsary_slidewidth', 400, 'maximum slide width');
add_option('wpsary_slideheight', 400, 'maximum slide height');
add_option('wpsary_colnumbers', 3, 'Number of columns on page');

add_option('wpsary_album_order', 'nameasc', 'sort order for album'); 
add_option('wpsary_image_order', 'nameasc', 'sort order for image'); 



// build the gallery root (the physical location) and the gallery address (on the web)
// based on the directory specified in the options
function wpsary_buildPaths()
{
	global $wpsary_gallery_address, $wpsary_gallery_root;

	// these paths require the "gallery path" to be specified relative to the wp install dir
	$wpsary_gallery_root =	ABSPATH.get_option('wpsary_gallery_address').'/';
	$wpsary_gallery_address = get_option('siteurl').'/'.get_option('wpsary_gallery_address').'/'; 
}

?>